package com.chen.Sign.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.Sign.pojo.Journal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.Map;

@Mapper
@SuppressWarnings({"all"})
public interface JournalMapper extends BaseMapper<Journal> {

    // 插入学习记录
    public int insertJournal(Journal journal);

    // 根据用户名返回所有数据
    public Map<String, Object> selectByName(String username);

    //查询一天内的时间数据
    public Map<String, Object> selectByNameDay(String username);

    //查询一周内的时间数据
    public Map<String, Object> selectByNameWeek(String username);

    // 查询所有的时间数据
    public Map<String,Object> selectByNameAll(String username);

    public LinkedHashMap<String,Object> selectDescTime(String name);

    public Map<String,Object> selectMonkeytime(String username);

    public Map<String,Object> selectTuesdaytime(String username);

    public Map<String,Object> selectWednesdaytime(String username);

    public Map<String,Object> selectThursdaytime(String username);

    public Map<String,Object> selectFridaytime(String username);

    public Map<String,Object> selectSaturdaytime(String username);

    public Map<String,Object> selectSundaytime(String username);

    // public int insertCreate(@Param("username") String username,@Param("create_time") )
}
